﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;

namespace Helena.Models
{
    public partial class DBContext:DbContext
    {
        public void seed()
        {
            seedCampanas();
            seedCategoria();
            seedProveedores();
            seedUnidades();
            seedProductos();
            //seedDetalleProducto();
            seedUsuario();
            seedLocales();
            seedConfiguraciones();
            seedClientes();
            seedTarjetas();
            
        }
    }

    public class DBInitializer : DropCreateDatabaseIfModelChanges<DBContext>
    //public class DBInitializer : DropCreateDatabaseAlways<DBContext>
    {
        protected override void Seed(DBContext context)
        {
            context.seed();
        }
    }
}